<?php
/**
 * @version $Id: admin.unocloud.html.php 3 2010-05-25 14:59:16Z vladzimirs $
 * @package UnoCloud
 * @copyright Авторские права (C) 2009-2010 UnoCloud team & (C) 2007-2010 Joostina team &. Все права защищены.
 * @license Лицензия http://www.gnu.org/licenses/gpl-2.0.htm GNU/GPL, или help/license.php
 * UnoCart! - свободное программное обеспечение распространяемое по условиям лицензии GNU/GPL
 * Для получения информации о используемых расширениях и замечаний об авторском праве, смотрите файл help/copyright.php.
 */
defined('_VALID_MOS') or die('Restricted access');

class HTML_unocloud
{

    function showWords(&$rows, &$pageNav, $option, $search, $sort, $orderby, $showPublished)
    {
        global $my, $eraseDes, $UNOCLOUD_version;
        mosCommonHTML::loadOverlib();
?>
			    <script type="text/javascript"><!--
	    function reorder(order, sort){
	    	document.adminForm.orderby.value=order;
	    	document.adminForm.ordering.value=sort;
	    	submitbutton();
	    } //-->
	    </script>
<p align="left"><a target="_blank" href="http://www.joomla.royy.net">UnoCloud v. <?php echo
$UNOCLOUD_version; ?></a></p>
		<form action="index2.php" method="post" name="adminForm" enctype="multipart/form-data">
		<table class="adminheading">
		<tr><TD align="center"><?php if ($eraseDes)
            echo (UNOCLOUD_ERASE_DES); ?></TD></tr>
		<tr>
			<th colspan="2" class="inbox"><?php echo UNOCLOUD_WORD_LIST ?></th>
		</tr>
		<tr>
			<td><?php echo UNOCLOUD_FILTER ?>:
				<input type="text" name="search" value="<?php echo $search; ?>" class="inputbox" onChange="document.adminForm.submit();" />
			</td>
		</tr>
	</table>
		<table cellpadding="4" cellspacing="0" border="0" width="100%" class="adminlist">
		<tr>
			<th width="20">
				<input type="checkbox" name="toggle" value="" onclick="checkAll(<?php echo
count($rows); ?>);" />
			</th>
			<th class="title" width="70"><a href="javascript:reorder('word', '<?php if ($sort ==
"ASC" && $orderby == "word")
            echo "DESC";
        else
            echo "ASC"; ?>');"><?php echo
UNOCLOUD_WORDS ?></a></th>
			<th class="title" width="40"><a href="javascript:reorder('wordLenght', '<?php if ($sort ==
"DESC" && $orderby == "wordLenght")
            echo "ASC";
        else
            echo "DESC"; ?>');"><?php echo
UNOCLOUD_WORD_LENGHT ?></a></th>
			<th width="50"></th>
			<th class="title" width="40"><a href="javascript:reorder('published', '<?php if ($sort ==
"DESC" && $orderby == "published")
            echo "ASC";
        else
            echo "DESC"; ?>');"><?php echo
UNOCLOUD_PUBLISHED ?>?</a></th>
			<th class="title" width="40"><a href="javascript:reorder('type', '<?php if ($sort ==
"DESC" && $orderby == "counter")
            echo "ASC";
        else
            echo "DESC"; ?>');"><?php echo
UNOCLOUD_TYPE ?></a></th>
			<th class="title" width="40"><a href="javascript:reorder('counter', '<?php if ($sort ==
"DESC" && $orderby == "counter")
            echo "ASC";
        else
            echo "DESC"; ?>');"><?php echo
UNOCLOUD_COUNTER ?></a></th>
			<th class="title" width="40"><a href="javascript:reorder('fontSize', '<?php if ($sort ==
"DESC" && $orderby == "fontSize")
            echo "ASC";
        else
            echo "DESC"; ?>');"><?php echo
UNOCLOUD_FONTSIZE ?></a></th>
			<th class="title" width="65"><a href="javascript:reorder('dateAdd', '<?php if ($sort ==
"DESC" && $orderby == "dateAdd")
            echo "ASC";
        else
            echo "DESC"; ?>');"><?php echo
UNOCLOUD_ADDED ?></a></th>
			<th class="title" width="40"><a href="javascript:reorder('new', '<?php if ($sort ==
"DESC" && $orderby == "new")
            echo "ASC";
        else
            echo "DESC"; ?>');"><?php echo
UNOCLOUD_NEW ?></a></th>
		</tr>
		<?php
        $k = 0;
        for ($i = 0, $n = count($rows); $i < $n; $i++) {
            $row = &$rows[$i];
            $task = $row->published ? 'unpublish' : 'publish';
            $img = $row->published ? 'publish_g.png' : 'publish_x.png';
            $alt = $row->published ? 'Published' : 'Unpublished';
?>
		<tr class="row<?php echo $k; ?>">
		<td>
			<input type="checkbox" id="cb<?php echo $i; ?>" name="cid[]" value="<?php echo
$row->id; ?>" onClick="isChecked(this.checked);">
		</td>
		<td>
			 <?php echo $row->word; ?>
		</td>
		<td><?php echo $row->wordLenght; ?></td>
		<td align="center">
				<?php if ($row->published == 0) { ?>
				<a href="javascript: void(0);" onclick="return listItemTask('cb<?php echo $i; ?>','addBlacklist')">
				<?php echo UNOCLOUD_BLACKLIST_ADD ?>
				</a> <?php } ?>
		</td>
		<td align="center">
				<a href="javascript: void(0);" onclick="return listItemTask('cb<?php echo $i; ?>','<?php echo
$task; ?>')">
				<img src="images/<?php echo $img; ?>" width="12" height="12" border="0" alt="<?php echo
$alt; ?>" />
				</a>
		</td>
		<td><?php
            switch ($row->type) {
                case 1:
                    echo UNOCLOUD_WORD;
                    break;
                case 2:
                    echo UNOCLOUD_KEY;
                    break;
                case 3:
                    echo UNOCLOUD_WORD_KEY;
                    break;
                case 4:
                    echo UNOCLOUD_W_WORD;
                    break;
                case 5:
                    echo UNOCLOUD_W_KEY;
                    break;
            }
?>
	</td>
                <td><?php echo $row->counter; ?></td>
                <td><?php echo $row->fontSize; ?></td>
                <td><?php echo $row->dateAdd; ?></td>
                <td><?php if ($row->new)
                echo ("<img src=\"images/tick.png\" width=\"12\" height=\"12\" border=\"0\">"); ?></td>
		</tr>
              <?php
            $k = 1 - $k;
        } ?>
</table>

			<?php echo $pageNav->getListFooter(); ?>
			<input type="hidden" name="option" value="<?php echo $option; ?>" />
			<input type="hidden" name="task" value="" />
			<input type="hidden" name="boxchecked" value="0" />
		  	<input type="hidden" name="orderby" value="<?php echo $orderby; ?>" />
		 	<input type="hidden" name="ordering" value="<?php echo $sort; ?>" />
</form>
<?php
    }


    function showPlugins(&$rows, &$pageNav, $option)
    {
        global $my, $UNOCLOUD_version;

        mosCommonHTML::loadOverlib();
?>
			    <script type="text/javascript"><!--
	    function reorder(order, sort){
	    	document.adminForm.orderby.value=order;
	    	document.adminForm.ordering.value=sort;
	    	submitbutton();
	    } //-->
	    </script>
<p align="left"><a target="_blank" href="http://www.joomla.royy.net">UnoCloud v. <?php echo
$UNOCLOUD_version; ?></a> </p>
	<form action="index2.php" method="post" name="adminForm">
	<table class="adminheading">
		<tr>
			<th colspan="2" class="inbox"><?php echo UNOCLOUD_PLUGINS ?></th>
		</tr>
		
	</table>
	<table cellpadding="4" cellspacing="0" border="0" width="100%" class="adminlist">
		<tr>
			<th width="20">
			</th>
			<th><?php echo UNOCLOUD_PLUGINS_DES ?></th>
			<th><?php echo UNOCLOUD_PLUGINS_PUBL ?></th>
			<th><?php echo UNOCLOUD_PLUGINS_FILE ?></th>
		</tr>
		<?php
        $k = 0;
        for ($i = 0, $n = count($rows); $i < $n; $i++) {
            $row = &$rows[$i];
            $message = $row->plugin;
            $message = strip_tags($message);
            if (Jstring::strlen($message) > 80)
                $message = Jstring::substr($message, 0, 78) . " ...";
            $task = $row->published ? 'unpublishPlugin' : 'publishPlugin';
            $img = $row->published ? 'publish_g.png' : 'publish_x.png';
            $alt = $row->published ? 'Published' : 'Unpublished';
?>
		<tr class="row<?php echo $k; ?>">
		<td>
			<input type="checkbox" id="pl<?php echo $i; ?>" name="plid[]" value="<?php echo
$row->plugin; ?>" onClick="isChecked(this.checked);">
		</td>
		<td>
			<?php echo $row->descr; ?>
		</td>
		<td align="center">
				<a href="javascript: void(0);" onclick="return listItemTask('pl<?php echo $i; ?>','<?php echo
$task; ?>')">
				<img src="images/<?php echo $img; ?>" width="12" height="12" border="0" alt="<?php echo
$alt; ?>" />
				</a>
		</td>
		<td>
			<?php echo $row->plugin; ?>
		</td>
		</tr>
		<?php
            $k = 1 - $k;
        } ?>
	</table>
			<input type="hidden" name="option" value="<?php echo $option; ?>" />
			<input type="hidden" name="task" value="plugins" />
			<input type="hidden" name="boxchecked" value="0" />
	</form>
		<form enctype="multipart/form-data" action="index2.php" method="post" name="filename">
		<table class="adminheading">

		<tr>
			<td><?php echo UNOCLOUD_UPLOAD_PLUGIN_DES; ?><input class="inputbox" type="file" name="rcfile" size="63" />
			<input class="button" type="submit" value="<?php echo UNOCLOUD_UPLOAD ?>" />
			</td>
		</tr>
		<tr><TD><?php echo UNOCLOUD_NEED_PLUGIN; ?></TD></tr>
	
</table>
		<input type="hidden" name="option" value="<?php echo $option; ?>" />
		<input type="hidden" name="task" value="upload"/>
</form>
<?php
    }

    function settings($option, &$UNOCLOUD_config)
    {

        global $mosConfig_absolute_path, $mosConfig_live_site, $UNOCLOUD_version;
        $tabs = new mosTabs(1);

        $UNOCLOUD_config->setValue("UNOCLOUD_debug", session_id(), 'config');

        if (is_file($mosConfig_absolute_path .
            "/administrator/components/com_unocloud/runlog.php"))
            require ($mosConfig_absolute_path .
                "/administrator/components/com_unocloud/runlog.php");


        if ($rows = $UNOCLOUD_config->getValues()) {
            foreach ($rows as $row) {
                if (!empty($row)) {
                    $val = "\$" . $row->UNOCLOUD_key . " = \$row->UNOCLOUD_value;";
                    eval($val);
                }
            }
        }
        if ($rows = $UNOCLOUD_config->getValues('scheduler')) {
            foreach ($rows as $row) {
                if (!empty($row)) {
                    $val = "\$" . $row->UNOCLOUD_key . " = \$row->UNOCLOUD_value;";
                    eval($val);
                }
            }
        }

        if ($UNOCLOUD_on_cache == null)
            $UNOCLOUD_on_cache = true;

        $old_settings = false;
        if (is_file($mosConfig_absolute_path .
            "/administrator/components/com_unocloud/settings.php")) {
            $old_settings = true;
            include ($mosConfig_absolute_path .
                "/administrator/components/com_unocloud/settings.php");
        }

?>
<SCRIPT LANGUAGE="JavaScript">
function loadWords()
{
    	document.adminForm.blacklist.value=document.adminForm.blacklist.value+"<?php if (!
empty($UNOCLOUD_blacklist))
            echo (",");
        echo Jstring::str_ireplace("\n", ' ', UNOCLOUD_DEFAULT_BLACKLIST_WORDS); ?>";
}
</script>
<p><font color=red><?php if ($old_settings)
            echo UNOCLOUD_OLD_CONFIG; ?></font></p>
<p align="left"><a target="_blank" href="http://www.joomla.royy.net">UnoCloud v. <?php echo
$UNOCLOUD_version; ?></a> </p>
	<p><?php echo UNOCLOUD_MSG_REMEMBER; ?></p>

	<table class="adminheading"><tr><th nowrap class="config"><?php echo
UNOCLOUD_CONFIGURATION; ?></th>
	</tr></table>
  	<form action="index2.php" method="POST" name="adminForm">
<?php
        $tabs->startPane("configPane");
        $tabs->startTab(UNOCLOUD_TAB_WORDS, "words");
?>
  <table width="100%" cellpadding="3" cellspacing="0" class="adminForm" style="border:1px solid #CCCCCC;">

    <tr>
      <td width="19%"><strong><?php echo UNOCLOUD_DEFAULT_ENABLE; ?>:</strong></td>
      <td>
      	<input type="radio" name="words_enabled" value="1" <?php if ($UNOCLOUD_enabled)
            echo "checked"; ?>/><?php echo
UNOCLOUD_YES; ?>
      	<input type="radio" name="words_enabled" value="0" <?php if (!$UNOCLOUD_enabled)
            echo "checked"; ?>/><?php echo
UNOCLOUD_NO; ?>			</td>
			<td width="53%"></td>
	</tr>
    <tr>
      <td width="19%"><strong><?php echo UNOCLOUD_DEFAULT_PUBLISHED; ?>:</strong></td>
      <td>
      	<input type="radio" name="published" value="1" <?php if ($UNOCLOUD_published)
            echo "checked"; ?>/><?php echo
UNOCLOUD_YES; ?>
      	<input type="radio" name="published" value="0" <?php if (!$UNOCLOUD_published)
            echo "checked"; ?>/><?php echo
UNOCLOUD_NO; ?>			</td>
			<td width="53%"></td>
	</tr>
    <tr>
      <td><strong><?php echo UNOCLOUD_DEFAULT_MIN_COUNTER; ?>:</strong></td>
      <td>
      	<input type="text" style="width: 60px;" name="mincounter" value="<?php echo
$UNOCLOUD_min_counter; ?>"/> 		</td>
			<td><?php echo UNOCLOUD_DEFAULT_MIN_COUNTER_DES; ?></td>
	</tr>
    <tr>
      <td><strong><?php echo UNOCLOUD_DEFAULT_MIN_LEN; ?>:</strong></td>
      <td>
      	<input type="text" style="width: 60px;" name="minlen" value="<?php echo $UNOCLOUD_min_len; ?>"/> 		</td>
			<td><?php echo UNOCLOUD_DEFAULT_MIN_LEN_DES; ?></td>
	</tr>
    <tr>
      <td><strong><?php echo UNOCLOUD_DEFAULT_MAX_LEN; ?>:</strong></td>
      <td>
      	<input type="text" style="width: 60px;" name="maxlen" value="<?php echo $UNOCLOUD_max_len; ?>"/> 		</td>
			<td><?php echo UNOCLOUD_DEFAULT_MAX_LEN_DES; ?></td>
	</tr>
   <tr>

      <td><strong><?php echo UNOCLOUD_DEFAULT_WHITELIST; ?>:</strong></td>
      <td>
      	<textarea rows=5 cols=50 name="whitelist"><?php echo $UNOCLOUD_whitelist; ?></textarea> </td>
			<td valign="top">
	<?php echo UNOCLOUD_DEFAULT_WHITELIST_DES; ?>
</td>
	</tr>

<tr>
      <td><strong><?php echo UNOCLOUD_DEFAULT_PREG; ?></strong></td>
      <td>
      	<input type="text" style="width: 200px;" name="replace_pattern" value="<?php echo
$UNOCLOUD_preg_replace; ?>"/> 		</td>
			<td><?php echo UNOCLOUD_DEFAULT_PREG_DES; ?></td>
</tr>
<tr><td height="30px" colspan="3"></td></tr>
</table>
<?php
        $tabs->endTab();
        $tabs->startTab(UNOCLOUD_TAB_KEYS, "keys");
?>
  <table width="100%" cellpadding="3" cellspacing="0" class="adminForm" style="border:1px solid #CCCCCC;">
  	<form action="index2.php" method="POST" name="adminForm">
    <tr>
      <td width="19%"><strong><?php echo UNOCLOUD_KEYS_ENABLE; ?>:</strong></td>
      <td>
      	<input type="radio" name="key_enabled" value="1" <?php if ($UNOCLOUD_key_enabled)
            echo "checked"; ?>/><?php echo
UNOCLOUD_YES; ?>
      	<input type="radio" name="key_enabled" value="0" <?php if (!$UNOCLOUD_key_enabled)
            echo "checked"; ?>/><?php echo
UNOCLOUD_NO; ?>			</td>
			<td width="53%"></td>
	</tr>
    <tr>
    <tr>
      <td width="19%"><strong><?php echo UNOCLOUD_KEYS_PUBLISHED; ?>:</strong></td>
      <td>
      	<input type="radio" name="key_published" value="1" <?php if ($UNOCLOUD_key_published)
            echo "checked"; ?>/><?php echo
UNOCLOUD_YES; ?>
      	<input type="radio" name="key_published" value="0" <?php if (!$UNOCLOUD_key_published)
            echo "checked"; ?>/><?php echo
UNOCLOUD_NO; ?>			</td>
			<td width="53%"></td>
	</tr>
    <tr>
      <td width="19%"><strong><?php echo UNOCLOUD_KEY_ASWORD; ?>:</strong></td>
      <td>
      	<input type="radio" name="key_asword" value="1" <?php if ($UNOCLOUD_key_asword)
            echo "checked"; ?>/><?php echo
UNOCLOUD_YES; ?>
      	<input type="radio" name="key_asword" value="0" <?php if (!$UNOCLOUD_key_asword)
            echo "checked"; ?>/><?php echo
UNOCLOUD_NO; ?>			</td>
			<td width="53%"><?php echo UNOCLOUD_KEY_ASWORD_DES; ?></td>
	</tr>
    <tr>

    <tr>
      <td><strong><?php echo UNOCLOUD_KEY_MIN_COUNTER; ?>:</strong></td>
      <td>
      	<input type="text" style="width: 60px;" name="key_mincounter" value="<?php echo
$UNOCLOUD_key_min_counter; ?>"/> 		</td>
			<td><?php echo UNOCLOUD_KEY_MIN_COUNTER_DES; ?></td>
	</tr>
    <tr>
      <td><strong><?php echo UNOCLOUD_KEY_MIN_LEN; ?>:</strong></td>
      <td>
      	<input type="text" style="width: 60px;" name="key_minlen" value="<?php echo
$UNOCLOUD_key_min_len; ?>"/> 		</td>
			<td><?php echo UNOCLOUD_KEY_MIN_LEN_DES; ?></td>
	</tr>
    <tr>
      <td><strong><?php echo UNOCLOUD_KEY_MAX_LEN; ?>:</strong></td>
      <td>
      	<input type="text" style="width: 60px;" name="key_maxlen" value="<?php echo
$UNOCLOUD_key_max_len; ?>"/> 		</td>
			<td><?php echo UNOCLOUD_KEY_MAX_LEN_DES; ?></td>
	</tr>
   <tr>
      <td><strong><?php echo UNOCLOUD_DEFAULT_WHITELIST; ?>:</strong></td>
      <td>
      	<textarea rows=5 cols=50 name="key_whitelist"><?php echo $UNOCLOUD_key_whitelist; ?></textarea> </td>
			<td valign="top">
	<?php echo UNOCLOUD_KEY_WHITELIST_DES; ?>
</td>
	</tr>

<tr>
      <td><strong><?php echo UNOCLOUD_DEFAULT_PREG; ?></strong></td>
      <td>
      	<input type="text" style="width: 200px;" name="key_replace_pattern" value="<?php echo
$UNOCLOUD_key_preg_replace; ?>"/> 		</td>
			<td><?php echo UNOCLOUD_KEY_PREG_DES; ?></td>
</tr>
<tr><td height="30px" colspan="3"></td></tr>
</table>
<?php
        $tabs->endTab();
        $tabs->startTab(UNOCLOUD_GENERAL, "general");
?>
<table align="left">

    <tr>
      <td><strong><?php echo UNOCLOUD_CACHE; ?>:</strong></td>
      <td>
      	     	<input type="radio" name="cache" value="1" <?php if ($UNOCLOUD_on_cache)
            echo "checked"; ?>/><?php echo
UNOCLOUD_YES; ?>
      	<input type="radio" name="cache" value="0" <?php if (!$UNOCLOUD_on_cache)
            echo "checked"; ?>/><?php echo
UNOCLOUD_NO; ?>			</td>
			<td><?php echo UNOCLOUD_CACHE_DES; ?></td>
	</tr>
    <tr>

    <tr>
      <td><strong><?php echo UNOCLOUD_DEFAULT_MIN_FONT; ?>:</strong></td>
      <td>
      	<input type="text" style="width: 60px;" name="minfont" value="<?php echo
$UNOCLOUD_min_font; ?>"/> 		</td>
			<td><?php echo UNOCLOUD_DEFAULT_MIN_FONT_DES; ?></td>
	</tr>
    <tr>
      <td><strong><?php echo UNOCLOUD_DEFAULT_MAX_FONT; ?>:</strong></td>
      <td>
      	<input type="text" style="width: 60px;" name="maxfont" value="<?php echo
$UNOCLOUD_max_font; ?>"/> 		</td>
			<td><?php echo UNOCLOUD_DEFAULT_MAX_FONT_DES; ?></td>
	</tr>
</table>
<table align="left"><TR>
      <td><strong><?php echo UNOCLOUD_DEFAULT_BLACKLIST; ?>:</strong></td>
      <td>
      	<textarea rows=30 cols=80 name="blacklist"><?php echo $UNOCLOUD_blacklist; ?></textarea> </td>
			<td valign="top">
	<?php echo UNOCLOUD_DEFAULT_BLACKLIST_DES; ?><br>
<input type="button" onClick="loadWords()" name="loadBlacklist" value="<?php echo
UNOCLOUD_DEFAULT_BLACKLIST_LOAD; ?>"><br>
</td>
	</tr>
</table>
<?php
        $tabs->endTab();
        $tabs->startTab(UNOCLOUD_TAB_SCHEDULER, "scheduler");
?>
<table>
<tr><TD>
<strong><?php echo UNOCLOUD_DEFAULT_RUN; ?>:</strong>
</td><td colspan="2"><?php echo UNOCLOUD_DEFAULT_RUN_INFO; ?>
<div style="background: #F1FEFE; border: 1px solid #DDDDEE; padding: 5px;">
<?php echo UNOCLOUD_DEFAULT_RUN_CODE; ?></div></td></tr>
<tr><TD>
<strong><?php echo UNOCLOUD_DEFAULT_RUN_PERIOD; ?>:</strong></td>
      <td>
      	<input type="text" style="width: 20px;" name="run_period" value="<?php echo
$UNOCLOUD_run_period; ?>"/> 
	<SELECT name="period_unit">
   <option value="1" <?php if ($UNOCLOUD_run_period_unit == 1)
            echo ("selected"); ?> ><?php echo
UNOCLOUD_HOURS; ?></option>
<option value="2" <?php if ($UNOCLOUD_run_period_unit == 2)
            echo ("selected"); ?> ><?php echo
UNOCLOUD_DAYS; ?></option>
 </SELECT>
<td>
<?php echo UNOCLOUD_DEFAULT_RUN_PERIOD_DES; ?></td>
</td></tr>

<tr>
<td><strong><?php echo UNOCLOUD_DEFAULT_RUN_DATE; ?></strong></td></td>
<TD>
<input type="text" style="width: 20px;" name="run_day" value="<?php echo $UNOCLOUD_run_day; ?>"/>-<input type="text" style="width: 20px;" name="run_month" value="<?php echo
$UNOCLOUD_run_month; ?>"/>-<input type="text" style="width: 30px;" name="run_year" value="<?php echo
$UNOCLOUD_run_year; ?>"/> 
</TD>
<td>
<?php echo UNOCLOUD_LAST_RUN; ?>: <?php if (isset($UNOCLOUD_runlog))
            echo date("d-m-Y  G:i", $UNOCLOUD_runlog); ?><br>
<?php echo UNOCLOUD_NEXT_RUN; ?>: <?php if (isset($UNOCLOUD_nextrun))
            echo date("d-m-Y  G:i", $UNOCLOUD_nextrun); ?><br>
<INPUT type="checkbox" name="resetrun" value="resetrun" title="<?php echo
UNOCLOUD_CLEAR_RUN; ?>"> - <?php echo
UNOCLOUD_CLEAR_RUN; ?>
</td>
</tr>
<tr>
<td>
</td>
<td>
<input type="text" style="width: 20px;" name="run_hour" value="<?php echo $UNOCLOUD_run_hour; ?>"/>:<input type="text" style="width: 20px;" name="run_minute" value="<?php echo
$UNOCLOUD_run_minute; ?>"/> 
</td>
<td>
<?php echo UNOCLOUD_DEBUG_MODE; ?> <a target="_blank" href="<?php echo $mosConfig_live_site; ?>/index2.php?option=com_unocloud&debug=1&hash=<?php echo
$UNOCLOUD_debug; ?>">DEBUG</a>
</td>
</tr>
<tr>
<td><strong><?php echo UNOCLOUD_DEFAULT_ADMIN_EMAIL; ?></strong></td>
      <td>
      	<input type="text" style="width: 250px;" name="admin_email" value="<?php echo
$UNOCLOUD_admin_email; ?>"/> 		</td>
			<td><?php echo UNOCLOUD_DEFAULT_ADMIN_EMAIL_DES; ?></td>
</tr>
    <tr>
      <td><strong><?php echo UNOCLOUD_DEFAULT_LIMIT; ?></strong></td>
      <td>
      	<input type="text" style="width: 30px;" name="run_limit" value="<?php echo
$UNOCLOUD_run_limit; ?>"/> 		</td>
			<td><?php echo UNOCLOUD_DEFAULT_LIMIT_DES; ?></td>
</tr>


  	<input type="hidden" name="option" value="<?php echo $option; ?>">
  	<input type="hidden" name="task" value="saveconfig">

  </table>
<?php
        $tabs->endTab();
        $tabs->startTab(UNOCLOUD_TAB_TOOLS, "tools");
?>
<table>
<tr>
<td>
<?php echo UNOCLOUD_RUN_DEBUG; ?> <a target="_blank" href="<?php echo $mosConfig_live_site; ?>/index2.php?option=com_unocloud&debug=1&hash=<?php echo
$UNOCLOUD_debug; ?>">DEBUG</a>
</td>
</tr>
<tr><TD>
<strong><?php echo UNOCLOUD_REMOVE; ?></strong>
</TD><td>
<SELECT name="remove_database">
<option value="0">-------------------------------</option>
<option value="1"><?php echo UNOCLOUD_REMOVE_DATABASE; ?></option>
</SELECT>
<INPUT type="checkbox" name="remove_database_1" title="<?php echo
UNOCLOUD_REMOVE_ACC; ?>"> - <?php echo
UNOCLOUD_REMOVE_ACC; ?>
</td><TD>
</TD></tr></table>
<?php
        $tabs->endTab();
        $tabs->startTab("Donations", "donations");
?>
  </form>
<table>
<tr><TD>
А десь будет помощь проекту.
</TD></tr></table>
<?php
        $tabs->endTab();
        $tabs->endPane();
    }
}
?>